package com.javafactroy.kunlong;

import com.javafactroy.kunlong.base.config.datasource.postgres.PostgresDatasourceConfig;
import org.dromara.easyes.starter.register.EsMapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

//https://www.jianshu.com/p/3b9ee9a33649
@SpringBootApplication(scanBasePackages = "com.javafactroy.kunlong")
@EnableEurekaClient
@EnableFeignClients(basePackages = "com.javafactroy.kunlong")
@EnableSwagger2
//@EnableApolloConfig
@EnableDiscoveryClient
@EsMapperScan("com.javafactroy.kunlong.framework.elasticsearch.mapper")
public class DbAgent {
    public static void main(String[] args) {

        try {
            SpringApplication.run(DbAgent.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
